
import axios from 'axios';

export function loginUser(username:string , password : string ) {
  return axios.get('/Login/user/' + username +"/" + password);
}


export function updateUser(username:string , prePassword : string , password : string) {
  return axios.get('/Login/user/update/' + username +"/" + prePassword + "/" + password);
}

export function selectFamilyByUserBid(userBid:string) {
  return axios.get('/Login/user/' + userBid );
}


export function Register(userName : string , password: string , Bid : string ) {
  return axios.get('/Login/user/register/' + userName + "/" +  password + "/" +Bid );
}


export function selectFamilyByParams(user:any) {
  return axios.post('/Login/user/selectFamilyByParams', user);
}

